module.exports = {
	base: '/',
	temp: '.temp',
	locales: {
		'/': {
			lang: 'zh-CN',
		}
	},
	title: '店滴',
	description: '快速构建多商户业务模型',
	head: [
		['link', {
			rel: 'icon',
			href: '/favicon.ico'
		}]
	],
	theme: '@qcyblm/vpx',
	themeConfig: {
		logo: '/assets/img/logo.png',
		BackToTop: true,
		nav: [{
				text: '首页',
				icon: 'fa fa-home',
				link: '/'
			},
			{
				text: '指南',
				icon: 'fa fa-book',
				link: '/guide/'
			},
			{
				text: '插件开发',
				icon: 'fa fa-book',
				link: '/addons/'
			},
			{
				text: 'fire-ui',
				icon: 'fa fa-cogs',
				link: '/fireui/'
			},
			{
				text: '开源案例',
				icon: 'fa fa-th',
				link: '/example'
			}
		],
		sidebar: {
			'/guide/': getGuideSidebar('指南'),
			'/addons/': getAddonsSidebar('插件开发'),
			'/fireui/': getFireuiSidebar('uniapp组件库'),
			'/admin/': getProSidebar('中后台')
		},
		repo: {
			platform: 'https://gitee.com/',
			icon: 'fab fa-git',
			owner: 'wayfiretech_admin',
			repositories: 'diandi-admin',
		},
		editLinks: true,
		editLinkText: '编辑当前页',
		edit: {
			docsPlatform: 'https://gitee.com/',
			docsRepo: 'wayfiretech_admin/dandi-doc',
			docsBranch: 'master',
			docsDir: 'docs',
		},
		footer: {
			licensedLink: 'https://gitee.com/wayfiretech_admin/diandi-admin',
			licensed: 'MIT',
			createYear: '2020',
			author: '途火科技',
			authorLink: 'https://gitee.com/wayfiretech_admin',
			copyright: [{
				text: '官方',
				link: 'http://www.wayfiretech.com/'
			}]
		}
	},
	plugins: [
		['vuepress-plugin-code-copy',
			{
				align: 'bottom',
				color: 'rgba(255,255,255,0.4)',
				backgroundTransition: 'bottom',
				backgroundColor: '#0075b8',
				successText: '复制成功',
				staticIcon: false,
			}
		]
	],
}

function getGuideSidebar(groupA) {
	return [{
		title: groupA,
		collapsable: false,
		icon: 'fa fa-book',
		children: [
			'',
			'install',
			'cache',
			'command',
			'addons_index',
			'database',
			'controller',
			'construct',
			'api',
			'abnormal',
			'component',
			'swoole',
			'markdown',
			'model',
		]
	}, ]
}

function getAddonsSidebar(groupA) {
	return [{
		title: groupA,
		collapsable: false,
		icon: 'fa fa-book',
		children: [
			'',
			'catalogue',
			'model',
			'search',
			'config',
			'api',
			'adminapi',
			'backend',
			'doc'
		]
	}, ]
}



function getFireuiSidebar(groupA) {
	return [{
			title: '基础组件',
			collapsable: false,
			icon: 'fa fa-book',
			children: [
				'button',
				'form',
				'icon',
				'input'
			]
		},
		{
			title: '地图',
			collapsable: false,
			icon: 'fa fa-book',
			children: [
				'map-index',
				'map-location'
			]
		},
		{
			title: '索引列表',
			collapsable: false,
			icon: 'fa fa-book',
			children: [
				'input'
			]
		},
		{
			title: '三级联动',
			collapsable: false,
			icon: 'fa fa-book',
			children: [
				'input'
			]
		},
		{
			title: '二维码生成',
			collapsable: false,
			icon: 'fa fa-book',
			children: [
				'input'
			]
		},
		{
			title: 'drawer抽屉',
			collapsable: false,
			icon: 'fa fa-book',
			children: [
				'input'
			]
		},
		{
			title: '滑动菜单',
			collapsable: false,
			icon: 'fa fa-book',
			children: [
				'input'
			]
		},
		{
			title: '分类菜单',
			collapsable: false,
			icon: 'fa fa-book',
			children: [
				'input'
			]
		},
		{
			title: '上拉加载下拉刷新',
			collapsable: false,
			icon: 'fa fa-book',
			children: [
				'input'
			]
		},
		{
			title: '消息提示',
			collapsable: false,
			icon: 'fa fa-book',
			children: [
				'input'
			]
		},
		{
			title: '吸顶容器',
			collapsable: false,
			icon: 'fa fa-book',
			children: [
				'input'
			]
		},
		{
			title: '数字键盘',
			collapsable: false,
			icon: 'fa fa-book',
			children: [
				'input'
			]
		},
		{
			title: '时间轴',
			collapsable: false,
			icon: 'fa fa-book',
			children: [
				'input'
			]
		},
		{
			title: '滚动消息',
			collapsable: false,
			icon: 'fa fa-book',
			children: [
				'input'
			]
		},
		{
			title: '下拉选择',
			collapsable: false,
			icon: 'fa fa-book',
			children: [
				'input'
			]
		},
		{
			title: '操作菜单',
			collapsable: false,
			icon: 'fa fa-book',
			children: [
				'input'
			]
		},
		{
			title: '数字框',
			collapsable: false,
			icon: 'fa fa-book',
			children: [
				'input'
			]
		},
		{
			title: '评分',
			collapsable: false,
			icon: 'fa fa-book',
			children: [
				'input'
			]
		},
		{
			title: '弹框',
			collapsable: false,
			icon: 'fa fa-book',
			children: [
				'input'
			]
		},
		{
			title: '弹框',
			collapsable: false,
			icon: 'fa fa-book',
			children: [
				'input'
			]
		}
	]
}




function getProSidebar(groupA) {
	return [{
		title: '中后台',
		collapsable: false,
		icon: 'fa fa-book',
		children: [
			''
		]
	}]
}
